# -*- coding: utf-8 -*-
# @Author   : Claus
# @Time     : 2020/6/23 11:57
# @FileName : start.py
import requests
requests.packages.urllib3.disable_warnings()

headers = {
'Referer': 'https://www.whzbtb.com/V2PRTS/WinBidBulletinInfoListInit.do',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36',
'Cookie': 'JSESSIONID=CDAFEDD1AB5AACE40AA3A8D3DE0B8992.tomcat3_system_portal; Hm_lvt_584478b66df9baddcb4e23391c58fdfb=1592719191,1592880494,1592884680,1592894391; Hm_lpvt_584478b66df9baddcb4e23391c58fdfb=1592894513; sequence="fr3M68a05g0qQlutxWDo4SjEO3gL1GEUslQ4MqOP9Dk="',
}
def parse_url(url):
    try:
        resp = requests.get(url, verify=False, headers=headers)
        assert resp.status_code == 200
        return resp
    except Exception as e:
        print(e.args)
        return None


if __name__ == '__main__':
    # url = "https://www.whzbtb.com/V2PRTS/"
    # resp = parse_url(url)
    # print(resp.text)
    # print(resp.url)
    url = "https://www.whzbtb.com/V2PRTS/WinBidBulletinInfoDetail.do?%69%64=%32%30%32%30%30%36%32%33%31%32%31%38%34%34%31%30%39%32"
    resp = parse_url(url)
    print(resp.text)